
import {GETMOVIE} from '../constant/countConst'

const init = {
  movieList :[]
}
export default function movieReducer(prestate=init,action){
  
  const {type,data} =action

  switch(type){
    
    case GETMOVIE:
    return {
       ...prestate,movieList:data
    }

  }

  return prestate
  
}